package com.tm.mapper;

import com.tm.model.EcMemberInfo;
import com.tm.model.EcMemberInfoCriteria;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface EcMemberInfoMapper {
    int countByExample(EcMemberInfoCriteria example);

    int deleteByExample(EcMemberInfoCriteria example);

    int deleteByPrimaryKey(Integer memberInfoId);

    int insert(EcMemberInfo record);

    int insertSelective(EcMemberInfo record);

    List<EcMemberInfo> selectByExample(EcMemberInfoCriteria example);

    EcMemberInfo selectByPrimaryKey(Integer memberInfoId);

    int updateByExampleSelective(@Param("record") EcMemberInfo record, @Param("example") EcMemberInfoCriteria example);

    int updateByExample(@Param("record") EcMemberInfo record, @Param("example") EcMemberInfoCriteria example);

    int updateByPrimaryKeySelective(EcMemberInfo record);

    int updateByPrimaryKey(EcMemberInfo record);

	EcMemberInfo getMemberByMobile(String mobile);

	EcMemberInfo getMemberByUnionId(String unionid);

	List<Map<String, Object>> getAddressListByMemberId(Integer memberId);

	int cancelDefaultByMemberId(Integer memberId);

	int setDefaultByMemberId(Map<String, Object> param);

	int delAddr(Map<String, Object> param);

	Map<String, Object> getAddressByAddrId(Integer addrId);

	int addAddr(Map<String, Object> param);

	int updateAddr(Map<String, Object> param);

	List<Map<String, Object>> getLowerListByMemberIdWithPage(Map<String, Object> param);

	Map<String, Object> getDefaultAddressByMemberId(Integer memberId);

	List<Map<String, Object>> getSignLogThisMonth(Integer memberId);

	Map<String, Object> getSignLogToday(Integer memberId);

	Map<String, Object> addMemberSignLog(Map<String, Object> param);

	Map<String, Object> getSignLogYestoday(Integer memberId);

}